package service.impl;

import dao.OrderCartDao;
import dao.impl.OrderCartDaoImpl;
import entity.Order_Cart;
import service.OrderCartService;

import java.util.List;

public class OrderCartServiceImpl implements OrderCartService {
	private OrderCartDao ocd = new OrderCartDaoImpl();

	@Override
	public List<Order_Cart> queryAllOrder_CartListByUserId(Integer user_Id) {
		return ocd.queryAllOrder_CartListByUserId(user_Id);
	}


	@Override
	public int deleteOrderCartByUidAndPidAndMid(Integer product_id, Integer model_id, Integer user_id) {
		
		return ocd.deleteOrderCartByUidAndPid(product_id, model_id, user_id);
	}


	@Override
	public int updateOrderCartByCurrentNeed(Integer product_id, Integer model_id, Integer user_id, Integer need) {
		return ocd.updateOrderCartByCurrentNeed(product_id, model_id, user_id, need);
	}

}
